package com.fuzongle.tenant.core.mybatis;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 租户配置
 */
@Getter
@Setter
@Component
@ConfigurationProperties(prefix = "com.fuzongle")
public class TenantProperties {

    /**
     * 是否开启租户模式、默认开启
     */
    private Boolean enable = true;
    /**
     * 模拟租户表设置
     */
    private String tenantTable = "db1";
    /**
     * 需要排除的多租户的表
     */
    private List<String> ignoreTables;


}
